package com.hmall.search.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.hmall.common.dto.PageDTO;
import com.hmall.search.pojo.ItemDoc;
import com.hmall.search.pojo.RequestParams;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface ISearchService {
    List<String> getSuggestion(String prefix) throws IOException;

    Map<String, List<String>> getFilters(RequestParams params) throws IOException;

    PageDTO<ItemDoc> search(RequestParams params) throws JsonProcessingException, Exception;
}
